package com.it.chinasoft.service.activiti;

import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.springframework.beans.factory.annotation.Autowired;

public class App {
    @Autowired
    ProcessEngineConfiguration processEngineConfiguration;

    public static void main(String[] arg){
        //ProcessEngineConfiguration processEngine = ProcessEngines.getDefaultProcessEngine();
        ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("activiti.cfg.xml");
        ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine();

    }
}